package com_fit.springboot_fit.service;


import com_fit.springboot_fit.entity.AdminMenu;
import com_fit.springboot_fit.entity.AdminUser;

import java.util.List;

public interface AdminMenuService {

    // 查询所有显示的菜单
    List<AdminMenu> findAllShowMenu();

    // 根据父ID查询显示的菜单
    List<AdminMenu> findShowMenuByPid(Integer pid);

    // 构建菜单树
    List<AdminMenu> buildMenuTree(List<AdminMenu> menus);

    // 根据用户ID获取该用户有权限的菜单
    List<AdminMenu> getMenusByUserId(Integer userId);

    // 检查用户是否有访问某个菜单的权限
    boolean checkMenuPermission(Integer userId, String m, String c, String a);
}
